{if !$core->session->isLoggedIn()}{php}die("You must be logged in");{/php}{/if}
{if $smarty.get.process}
{if $core->database->add_news($smarty.post.title,$smarty.post.body) == 1}
News successfully added, <a href="./">Continue</a>
{else}
News addition error
{/if}
{/if}
<div class="page_header">Add News</div>
<p>
<form name="frmnews" method="post" action="./?n=news/add&process=1">
<table class="inline">
<tr>
<th>Title</th>
<td><input type="text" name="title" /></td>
</tr>
<tr>
<th>Body</th>
<td><textarea name="body" cols="40" rows="6"></textarea></td>
</tr>
</table>
<input type="submit" name="Submit" value="Submit" />
</form>
</p>